From bdd7865e7b4ee5ec1b61e94abd9ce63b4eb71aaf Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 25 Nov 2021 08:37:57 -0800 Subject: [PATCH] sort SOURCES and HEADERS in build. this gives a reasonable initial project view in Xcode. this gives a resaonable order to compilation. --- CMakeLists.txt | 3 +++ GPSBabel.pro | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e12d0013..dc3656fca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,6 +277,9 @@ set(SOURCES ${SOURCES} ${ALL_FMTS} ${FILTERS} ${SUPPORT} ${SHAPE} ${ZLIB} ${JEEPS} ${RESOURCES} ) +list(SORT SOURCES) +list(SORT HEADERS) + # We don't care about stripping things out of the build. Full monty, baby. add_definitions(-DMAXIMAL_ENABLED) add_definitions(-DFILTERS_ENABLED) diff --git a/GPSBabel.pro b/GPSBabel.pro index 00bc8d03c..e2f3a848c 100644 --- a/GPSBabel.pro +++ b/GPSBabel.pro @@ -266,6 +266,9 @@ include(libusb.pri) SOURCES += $$ALL_FMTS $$FILTERS $$SUPPORT $$JEEPS +SOURCES = $$sorted(SOURCES) +HEADERS = $$sorted(HEADERS) + # We don't care about stripping things out of the build. Full monty, baby. DEFINES += MAXIMAL_ENABLED DEFINES += FILTERS_ENABLED -- 2.30.2